<?php
namespace TestModule\Form;
use Zend\Form\Form;

class LoginForm extends Form{
	
	function __construct($name = null) {
		parent::__construct('user_login');
		
		$this->setAttribute('method', 'post');
		
		$this->add(array(
				'name' => 'user_id',
				'attributes' => array(
						'type' => 'hidden',
						
						)
				
				));
		$this->add(array(
				'name' => 'username',
				'attributes' => array(
						'type' => 'text',
						),
				'options' => array(
						'label' => 'User name',
						
						),
				
				
				));
		
		$this->add(array(
				
				'name' => 'submit',
				'attributes' => array(
						'type' => 'submit',
						'value' => 'Login',
						'id' => 'submitbutton',
						),
				
				));
	}
}

?>